#include "uart.c"
#include "keys.c"
void main()
{
    unsigned char index;
    uart_init();
    init_key_config();
    while (1)
    {
        index = key_scan();
        if (index != 0xFF)
        {
            printf("%d\n", (int)index);
        }
    }
}